//
//  InitiationFreeViewController.m
//  Molian
//
//  Created by xiaocankeji on 16/2/1.
//  Copyright © 2016年 xiaocan. All rights reserved.
//

#import "InitiationFreeViewController.h"

@interface InitiationFreeViewController ()

@end

@implementation InitiationFreeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [super viewDidLoad];
    [self.navigationItem setHidesBackButton:YES animated:YES];
    self.navigationItem.rightBarButtonItem = nil;
    self.navigationItem.leftBarButtonItem = nil;
    
    self.title = @"入会审核";
    self.view.backgroundColor =  APPCOLORBACKGROUNDCOLOR(1);
    CGFloat h = DeviceWidth/320*180;
    UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, kNavigationBarHeight, DeviceWidth, h)];
    // v.backgroundColor = RGBA(55, 198, 119, 1);
    v.backgroundColor = RGBA(55, 149, 202, 1);
    //    v.backgroundColor = RGBA(244, 152, 68, 1);
    //    v.backgroundColor = RGBA(243, 93, 67, 1);
    [self.view addSubview:v];
    
    UIImageView *i = [[UIImageView alloc] initWithFrame:CGRectMake(DeviceWidth/2 - 50/2, 20, 50, 50)];
    i.image = [UIImage imageNamed:@"check_icon"];
    [v addSubview:i];
    
    
    UILabel *l = [[UILabel alloc] initWithFrame:CGRectMake(10, 70, DeviceWidth - 20, h - 70)];
    l.numberOfLines = 0;
    l.textColor = [UIColor whiteColor];
    l.textAlignment = NSTextAlignmentCenter;
    l.font = kFont(15);
    l.text = @"您的资料通过审核\n您获得免费资格,无需支付可以直接进入";
    [v addSubview:l];
    
    
    
    UIButton *downBt = [UIButton buttonWithType:UIButtonTypeCustom];
    downBt.frame = CGRectMake(50, DeviceHeight - 150, DeviceWidth-100, 40);
    downBt.backgroundColor = APPCOLOR(1);
    downBt.layer.masksToBounds = YES;
    downBt.layer.cornerRadius = 5;
    [downBt setTitle:@"进入无独团" forState:UIControlStateNormal];
    // [downBt setImageEdgeInsets:UIEdgeInsetsMake(-2,-18, -2, 0)];
    //[downBt setTitleEdgeInsets:UIEdgeInsetsMake(0, -12, 0, -10)];
    [downBt setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [downBt setTitleColor:RGBA(188, 188, 188, 1) forState:UIControlStateHighlighted];
    downBt.titleLabel.font = kFont(15);
    [downBt addTarget:self action:@selector(clickDownBt:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:downBt];
    // Do any additional setup after loading the view.
}

- (void)clickDownBt:(UIButton *)bt
{
    [self.navigationController popToRootViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    if ([self isViewLoaded]&&!self.view.window) {
        self.view = nil;
    }
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
